]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
browser-plugin: Fix Opera support
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 14 May 2012 21:12:45 +0000 (18:12 -0300)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 29 May 2012 22:57:05 +0000 (18:57 -0400)
Opera now tries to call NP_SetWindow without trying to check
if it's a NULL pointer or not.

https://bugzilla.gnome.org/show_bug.cgi?id=672192

browser-plugin/browser-plugin.c

index 01f335a04d04bac1bcc1fc250bf6fa84eec37cc4..17037243212711463bf3897925b614af3d22a694 100644 (file)
@@ -163,6 +163,7 @@ NP_Initialize(NPNetscapeFuncs *pfuncs, NPPluginFuncs *plugin)
   plugin->newp = NPP_New;
   plugin->destroy = NPP_Destroy;
   plugin->getvalue = NPP_GetValue;
+  plugin->setwindow = NPP_SetWindow;
 
   return NPERR_NO_ERROR;
 }
@@ -969,3 +970,12 @@ NPP_GetValue(NPP          instance,
 
   return NPERR_NO_ERROR;
 }
+
+/* Opera tries to call NPP_SetWindow without checking the
+ * NULL pointer beforehand. */
+NPError
+NPP_SetWindow(NPP          instance,
+              NPWindow    *window)
+{
+  return NPERR_NO_ERROR;
+}